package cn.iocoder.an.module.business.controller.admin.reportconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 报表配置新增/修改 Request VO")
@Data
public class ReportConfigSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12591")
    private Long id;

    @Schema(description = "父表id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4507")
    @NotNull(message = "父表id不能为空")
    private Long reportId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "目标值")
    private BigDecimal targetValue;

    @Schema(description = "负责人", example = "19916")
    private List<Long> dutyUserId;

    @Schema(description = "负责人", example = "赵六")
    private String dutyUserName;


    /**
     * 目标方法
     */
    private String targetFunction;

}